<?php
/**
 * Created by PhpStorm.
 * User: Silence
 * Date: 2017-07-12
 * Time: 22:52
 */
namespace App\Base;




use Illuminate\Support\Facades\DB;

class Power
{
    public function laozong()
    {
        $laozong = DB::table('power')
            ->where("power_name","=","老总")
            ->first();
        return $laozong;
    }

    public function jingli()
    {
        $jingli = DB::table('power')
            ->where("power_name","=","经理")
            ->first();
        return $jingli->power_id;
    }

    public function duizhang()
    {
        $duizhang = DB::table('power')
            ->where("power_name","=","队长")
            ->first();
        return $duizhang->power_id;
    }

    public function yuangong()
    {
        $yuangong = DB::table('power')
            ->where("power_name","=","员工")
            ->first();
        return $yuangong->power_id;
    }
}